// 财务相关所有接口数据
import request from '/@/utils/request';


/**
 * 列表
 * @param params 要传的查询参数值
 * @returns 返回接口数据
 */
export function list(params: any) {
	let paramsQuery: any = params;
	paramsQuery.page = params.pageNum;
	paramsQuery.size = params.pageSize;
	return request({
		url: '/spu/list',
		method: 'post',
		data: params,
	});
}


// 佣金记录明细
export function getBrokerage(params: any) {
	const paramsQuery = Object.assign({}, params, {  
		current: params.pageNum,
		size: params.pageSize,
	});  
	delete paramsQuery.pageNum;
	delete paramsQuery.pageSize;
	return request({
		url: '/applet/agent/brokerage',
		method: 'GET',
		params: paramsQuery,
	});
}

